package cn.wh.ymcc.feignclients;

import cn.wh.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-common",fallbackFactory = CommonFeignClientFallbackFactory.class)
public interface CommonFeignClient {
    @PostMapping("/messageStation/messagePush")
    JSONResult messagePush(@RequestBody String courseName);
}
